import request from '@/utils/request'
import { getMiniAppId } from '@/utils/index'
// 小程序管理列表
export function orderList(data) {
  return request({
    url: '/admin/order/list',
    method: 'post',
    data: getMiniAppId(data)
  })
}
// 退款订单页面

export function refundOrderList(data) {
  return request({
    url: '/admin/refund_order/list',
    method: 'post',
    data: getMiniAppId(data)
  })
}

//  导出
export function exportData(data) {
  return request({
    url: '/admin/export/export',
    method: 'post',
    data: data
  })
}

// 退款数据
export function refundData(data) {
  return request({
    url: '/admin/order/refundData',
    method: 'post',
    data: getMiniAppId(data)
  })
}

// 退款操作
export function refundOrder(data) {
  return request({
    url: '/admin/order/refundOrder',
    method: 'post',
    data: getMiniAppId(data)
  })
}

// 手动回传

export function setCallBackStatus(data) {
  return request({
    url: '/admin/order/setCallBackStatus',
    method: 'post',
    data: data
  })
}
